﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace DataModel
{
    [DataContract]
    public class User
    {

        [DataMember(Name="id", Order=0)]
        public int Id { get; set; }

        [DataMember(Name = "login", Order = 1)]
        public string Login { get; set; }

        [DataMember(Name = "groups", Order = 2)]
        public List<Group> Groups { get; set; }
    }
}
